package com.intelligentclass.mydata;

public class CourseInfo {

    public String cno;
    public String cname;
    public String tname;
    public int cid;

    public CourseInfo(){}
    public CourseInfo(String cno, String cname, String tname, int cid) {
        this.cno = cno;
        this.cname = cname;
        this.tname = tname;
        this.cid = cid;
    }

    public String getCno() {
        return cno;
    }
    public void setCno(String cno) {
        this.cno = cno;
    }
    public String getCname() {
        return cname;
    }
    public void setCname(String cname) {
        this.cname = cname;
    }
    public String getTname() {
        return tname;
    }
    public void setTname(String tname) {
        this.tname = tname;
    }
    public int getCid() {
        return cid;
    }
    public void setCid(int cid) {
        this.cid = cid;
    }

    public String toString(){
        StringBuilder builder = new StringBuilder();
        builder.append("{\"cno\":");
        builder.append(cno + ",");
        builder.append("\"cname\":");
        builder.append(cname + ",");
        builder.append("\"tname\":");
        builder.append(tname + ",");
        builder.append("\"cid\":");
        builder.append(cid + "}");
        return builder.toString();
    }
}
